package org.jeecg.modules.information.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author li
 * @since 2021-08-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CourseKnowledge对象", description="")
public class CourseKnowledge implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID,存UUID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "章节知识点名称")
    private String knowledgeName;

    @ApiModelProperty(value = "排序字段，数字越小排越前面")
    private Integer knowledgeOrder;

    @ApiModelProperty(value = "Java代码自动生成，生成规则如一级分类：A01,A01下二级分类:A01A01,如第二个二级分类A01A02,如第二个一级分类A02,以此类推")
    private String knowledgeCode;

    @ApiModelProperty(value = "所属课程id")
    private String knowledgeCourseId;

    @ApiModelProperty(value = "章节简介")
    private String knowledgeIntroduction;

    @ApiModelProperty(value = "上级章节Id")
    @TableField("Knowledge_superior_id")
    private String knowledgeSuperiorId;

    @ApiModelProperty(value = "章节题目数量，一级节点二级节点都需要有数量，一级节点下二级节点所有数量相加之和要等于一级节点的数量。")
    private Integer knowledgeTopicsNumber;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
